import request from "@/utils/request.js";

// 游客登录
const visitorApi = () => request({ url: "/user/visitor" });

// 查询用户信息
const queryUserInfoApi = (data) => {
    return request({
        url:"/user/getUserinfo",
        method:"POST",
        data
    })
}

// 用户名注册
const registerApi = (data) => {
    return request({
        url:"/user/register",
        method:"POST",
        data
    })
}

// 用户名登录
const userNameLoginApi = (data) => {
    return request({
        url:"/user/userNameLogin",
        method:"POST",
        data
    })
}

// 微信登录
const wxLoginApi = (data) => {
    return request({
        url:"/user/wxLogin",
        method:"POST",
        data
    })
}


export {
    queryUserInfoApi,
    visitorApi,
    registerApi,
    userNameLoginApi,
    wxLoginApi

}